<!DOCTYPE html>
<!--
Copyright (c) 2014 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<link rel="import" href="/tracing/ui/base/dom_helpers.html">
<link rel="import" href="/tracing/ui/base/toolbar_button.html">
<script>
'use strict';

tr.b.unittest.testSuite(function() {
  test('tallWithTextContent', function() {
    const el = document.createElement('tr-ui-b-toolbar-button');
    el.style.width = '100px';
    el.style.height = '40px';

    Polymer.dom(el).textContent = 'blahblah';

    this.addHTMLOutput(el);
  });

  test('tallWithInnerSpan', function() {
    const el = document.createElement('tr-ui-b-toolbar-button');
    el.style.width = '100px';
    el.style.height = '40px';

    Polymer.dom(el).appendChild(tr.ui.b.createSpan({textContent: 'blahblah'}));

    this.addHTMLOutput(el);
  });

  test('puny', function() {
    const el = document.createElement('tr-ui-b-toolbar-button');
    Polymer.dom(el).textContent = 'M';
    this.addHTMLOutput(el);
  });
});
</script>
